// @import './variable.less';
// 路由动画
/* router view transition */
.zoom-fade-enter-active,
.zoom-fade-leave-active {
    transition: transform 0.35s, opacity 0.28s ease-in-out;
}

.zoom-fade-enter-from {
    opacity: 0;
    transform: scale(0.97);
}

.zoom-fade-leave-to {
    opacity: 0;
    transform: scale(1.03);
}

/* router view transition */
.main-enter-active {
    transition: all 0.2s;
}

.main-leave-active {
    transition: all 0.15s;
}

.main-enter {
    opacity: 0;
    margin-left: -20px;
}

.main-leave-to {
    opacity: 0;
    margin-left: 20px;
}

html body {
    overflow: hidden;
}

// 左边距离
.margin-l-8 {
    margin-left: 8px !important;
}

.margin-l-16 {
    margin-left: 16px !important;
}

.margin-l-24 {
    margin-left: 24px !important;
}

// 右边距离
.margin-r-8 {
    margin-right: 8px !important;
}

.margin-r-16 {
    margin-right: 16px !important;
}

.margin-r-24 {
    margin-right: 24px !important;
}

// 头部
.margin-t-8 {
    margin-top: 8px !important;
}

.margin-t-16 {
    margin-top: 16px !important;
}

.margin-t-24 {
    margin-top: 24px !important;
}

// 尾部
.margin-b-8 {
    margin-bottom: 8px !important;
}

.margin-b-16 {
    margin-bottom: 16px !important;
}

// 移动手势
.cursor-pointer {
    cursor: pointer;
}

// color
.primary-color {
    // color: #1890ff;
    color: @primary-color !important;
}

.warning-color {
    color: @warning-color !important;
}

.success-color {
    color: @success-color !important;
}

.error-color {
    color: @error-color !important;
}

.title-font-color {
    color: #1f2329;
}

.body-font-color {
    color: #505a6e;
}

.caption-font-color {
    color: #70798b;
}

.disable-font-color {
    color: #b3b6bb;
}

.link-font-color {
    color: @primary-color;
}

.viewer-open {
    .viewer-backdrop {
        background: #fff;
    }
}

//字体
.font-s-base {
    font-size: @font-size-base;
}

.font-s-14 {
    font-size: 14px;
}

// bold
.font-w-b {
    font-weight: bold;
}

.modal-icon-warning {
    color: @warning-color !important;
}

.modal-icon-success {
    color: @success-color !important;
}

.modal-icon-error {
    color: @error-color !important;
}

.modal-icon-info {
    color: @primary-color !important;
}

.ql-snow .ql-picker {
    line-height: 20px !important;
}

.disabled-form {
    .ant-form-item-label {
        min-width: 0 !important;
    }
}

// full-divider
.full-divider-h {
    margin: 12px -24px !important;
    width: calc(100% + 48px) !important;
}

// 标签样式
.h-tag-item {
    position: relative;
    display: flex;
    flex: none;
    box-sizing: border-box;
    max-width: 100%;
    height: 24px;
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 22px;
    background: #f5f5f5;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    cursor: default;
    transition: font-size 0.3s, line-height 0.3s, height 0.3s;
    user-select: none;
    margin-inline-end: 4px;
    padding-inline-start: 8px;
    padding-inline-end: 4px;
}

// hover阴影
.hover-shadow:hover {
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.08);
}



//滚动条
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}


::-webkit-scrollbar-thumb {
    background-color: #9093994d;
    border-radius: 2px;
    box-shadow: inset 0 0 6px #0003;
}

::-webkit-scrollbar-track {
    background-color: #0000000d;
}

::-moz-scrollbar {
    width: 6px;
    height: 6px;
}

::-moz-scrollbar-thumb {
    background-color: #9093994d;
    border-radius: 2px;
    box-shadow: inset 0 0 6px #0003;
}

::-moz-scrollbar-track {
    background-color: #0000000d;
}

//placeholder
::-webkit-input-placeholder {
    font-weight: 300 !important;
}

::-moz-placeholder {
    font-weight: 300 !important;
}

.text-bre1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-bre2 {
    word-break: break-all;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;
    /* 这里是超出几行省略 */

    overflow: hidden;
}



// 全局表格自适应布局
.ant-table-fn {
    flex-shrink: 0;
}

.ant-table-list {
    flex: auto;
    overflow: hidden;
    margin-left: -1px;
}


// 表格滚动条导致错行
.custom-table-wrap .ant-table-header {
    width: calc(100% - 6px) !important;
}

// 修复表格fixed时，表头与下方内容错位问题
.content[data-router='/version/versionList'],
.content[data-router='/productRequire/productRequirements'],
.content[data-router='/productRequire/myRequire'],
.content[data-router='/taskRequire/taskRequirements'],
.content[data-router='/taskRequire/myRequire'],
.content[data-router='/setting/system/systemList'],
.content[data-router='/energyManage/requireTrack'],
.content[data-router='/productAnalysis/productList'] {
    .ant-spin-container>.ant-table>.ant-table-content>.ant-table-scroll>.ant-table-header {
        margin-right: 6px !important;
        padding-right: 0 !important;
    }
}